package comc;

import com.anhua.Util.EnableHelloService;
import com.anhua.config.EnableAuto;
import myrule.MyIEule;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//@EnableEurekaClient

//@RibbonClient(name = "springcloud-devt",configuration = MyIEule.class)//自定义算法，默认是轮询
//@RibbonClient(name = "SPRINGCLOUD-DEVT-8002")//自定义算法
@EnableDiscoveryClient
//@EnableFeignClients(basePackages = {"comc.controller"},defaultConfiguration = MyIEule.class)
@EnableFeignClients(basePackages = {"comc.controller"})//调度的包名称
@EnableHelloService
//@ComponentScan({"comc.*"})
@EnableAuto
@EnableScheduling
@EnableBatchProcessing
public class Springbootdemo8081Application {
    public static void main(String[] args) {
        SpringApplication.run(Springbootdemo8081Application.class, args);
        System.out.println("消费者=======8081=======");
    }

}
